﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace UFSSClientClasses
{
    public static class ControlPopulator
    {
        public static void AppendListControl(ListControl c, object[] obj)
        {
            for (int i = 0; i < obj.Length; i++)
                c.ValueMember.Insert(i, obj.ToString());
        }
        public static void PopulateListControl(ListControl c, object[] obj)
        {
            c.ValueMember.Remove(0);
            for (int i = 0; i < obj.Length; i++)
                c.ValueMember.Insert(i, obj.ToString());
        }
    }
}
